package com.tron.dobest.common;

import lombok.Data;

public class BaseController {


    protected <E> FinalResult<E>  buildFinalResult(E e) {
        final FinalResult<E> finalResult = new FinalResult<>();
        finalResult.setData(e);
        return finalResult;
    }

    @Data
    protected static class  FinalResult<T>{
        private final Integer code = 200;
        private T data;
    }

}
